#!/bin/sh
source /etc/profile

echo "stop all game server start!"
for pid in `ps aux | grep "game-*" | grep "dat" |grep -v grep| cut -c 9-15 | xargs`
do
  kill -9 $pid
  echo "kill -9 "$pid
done
echo "stop all game server end!"

echo "rm -rf /game/logs/*.log start!"
rm -rf /game/logs/*.log
echo "rm -rf /game/dump/*.dat start!"
rm -rf /game/dump/*.dat
